package com.zyz.I_多线程.常用方法;

/**
 * @author: vick
 * @Date: 2025/3/22
 * @Description:
 * @version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        DaemonThread daemonThread = new DaemonThread();
        //将线程设置为守护线程
        daemonThread.setDaemon(true);
        daemonThread.start();

        for (int i = 1; i <= 100; i++) {
            System.out.println("main:" + i);
        }
    }
}
